import axios from '@/utils/axios'
import moment from "moment";

export function getEmpKpiList(params) {
  return axios({
    url: '/EmpKpi/page',
    method: 'get',
    data: params
  })
}

export function getOneKpiList(params) {
  return axios({
    url: '/EmpKpi/list',
    method: 'post',
    data: params
  })
} 

export function addEmpKpi(params) {
  return axios({
    url: '/EmpKpi/match',
    method: 'post',
    data: params
  })
}

export function deleteOneEmpKpi(params) {
  return axios({
    url: '/EmpKpi/delete',
    method: 'post',
    data: params
  })
}

export function updateOneEmpKpi(params) {
  return axios({
    url: '/EmpKpi/update',
    method: 'post',
    data: params
  })
}

export function reAdd(params) {
  return axios({
    url: '/EmpKpi/reAdd',
    method: 'get',
    data: params
  })
}

export function reDelete(params) {
  return axios({
    url: '/EmpKpi/reDelete',
    method: 'post',
    data: params
  })
}

export function getSecondBack(params) {
  return axios({
    url: '/EmpKpi/secondBack',
    method: 'post',
    data: params
  })
}

export function getEmpKpiNowPage(params) {
  return axios({
    url: '/EmpKpi/nowPage',
    method: 'get',
    data: params
  })
}

export function getEmpKpiPastPage(params) {
  return axios({
    url: '/EmpKpi/pastPage',
    method: 'get',
    data: params
  })
}

export function getEmpKpiNowSearch(params) {
  return axios({
    url: '/EmpKpi/nowSearch',
    method: 'get',
    data: params
  })
}

export function getEmpKpiPastSearch(params) {
  return axios({
    url: '/EmpKpi/pastSearch',
    method: 'get',
    data: params
  })
}

export function search(params) {
  return axios({
    url: '/EmpKpi/Search',
    method: 'get',
    data: params
  })
}